<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>  




<% request.setAttribute("tab", 2); %>
<%@ include file="/header.jsp" %>

<c:out value="${error}"/>
<c:if test="${access}">
	
	<c:forEach items="${direct_messages}" var="message">
		</br>
		<fieldset>
			<p><b>From:</b> <img src='<c:out value="${message.sender.profileImageURL}" escapeXml="true" />' width=20 height=20 /> <c:out value="${message.sender.name}"/>
			<b>To:</b> <img src='<c:out value="${message.recipient.profileImageURL}" escapeXml="true" />' width=20 height=20/> <c:out value="${message.recipient.name}"/></p>
			<p><b>Message:</b></p>
			<p><c:out value="${message.text}"/></p>
		</fieldset>
		</br>
	</c:forEach>
	
</c:if>
	